/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package byblos.util;

import java.util.Calendar;
import org.vraptor.LogicRequest;
import org.vraptor.converter.ConversionException;
import org.vraptor.converter.Converter;

/**
 *
 * @author marano
 */
public class ConversorCalendar implements Converter {

    public Object convert(String texto, Class<?> classe, LogicRequest logica) throws ConversionException {
        return DataUtil.getCalendar(texto);
    }

    public Class<?>[] getSupportedTypes() {
        return new Class[]{Calendar.class};
    }
}
